.class public final Lcom/estrongs/android/util/v;
.super Ljava/lang/Object;
.source "FeLocalSocketManager.java"


# static fields
.field private static a:Landroid/net/LocalSocket;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static declared-synchronized a()Landroid/net/LocalSocket;
    .locals 4
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    const-class v0, Lcom/estrongs/android/util/v;

    monitor-enter v0

    .line 1
    :try_start_0
    sget-object v1, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;

    if-nez v1, :cond_0

    .line 2
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object v1

    sput-object v1, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    .line 3
    :cond_0
    :try_start_1
    sget-object v1, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;

    invoke-virtual {v1}, Landroid/net/LocalSocket;->getOutputStream()Ljava/io/OutputStream;

    move-result-object v1

    .line 4
    sget-object v2, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;

    invoke-virtual {v2}, Landroid/net/LocalSocket;->getInputStream()Ljava/io/InputStream;

    move-result-object v2

    const/16 v3, 0x50

    .line 5
    invoke-static {v1, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/io/OutputStream;I)V

    .line 6
    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/io/InputStream;)I
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    .line 7
    :catch_0
    :try_start_2
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object v1

    sput-object v1, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;

    .line 8
    :goto_0
    sget-object v1, Lcom/estrongs/android/util/v;->a:Landroid/net/LocalSocket;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    monitor-exit v0

    throw v1
.end method

.method public static b()V
    .locals 1
    .annotation build Landroidx/annotation/WorkerThread;
    .end annotation

    .line 1
    invoke-static {}, Lcom/estrongs/android/util/v;->a()Landroid/net/LocalSocket;

    move-result-object v0

    invoke-static {v0}, Les/xj;->a(Landroid/net/LocalSocket;)Z

    return-void
.end method
